package hpasDataEntities;

/** 硬件数据实体 **/
public class Hardware
{
    private int id;                 // 条目编号
    private String modelNo;         // 型号
    private String productName;     // 商品名
    private String description;     // 描述
    private int generalType;        // 大类编号
    private int detailedType;       // 小类编号
    private int brand;              // 品牌编号
    private String picSrc;          // 展示图地址
    public Hardware()
    {

    }
    public Hardware(Hardware existedHardware)
    {
        this.id=existedHardware.getId();
        this.modelNo=existedHardware.getModelNo();
        this.productName=existedHardware.getProductName();
        this.description=existedHardware.getDescription();
        this.generalType=existedHardware.getGeneralType();
        this.detailedType=existedHardware.getDetailedType();
        this.brand=existedHardware.getBrand();
        this.picSrc=existedHardware.getPicSrc();
    }
    public int getBrand()
    {
        return brand;
    }

    public int getDetailedType()
    {
        return detailedType;
    }

    public int getGeneralType()
    {
        return generalType;
    }

    public int getId()
    {
        return id;
    }

    public String getDescription()
    {
        return description;
    }

    public String getModelNo()
    {
        return modelNo;
    }

    public String getPicSrc()
    {
        return picSrc;
    }

    public String getProductName()
    {
        return productName;
    }

    public void setBrand(int brand)
    {
        this.brand = brand;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public void setDetailedType(int detailedType)
    {
        this.detailedType = detailedType;
    }

    public void setGeneralType(int generalType)
    {
        this.generalType = generalType;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public void setModelNo(String modelNo)
    {
        this.modelNo = modelNo;
    }

    public void setPicSrc(String picSrc)
    {
        this.picSrc = picSrc;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

}
